FROM cjpthree/centos7
RUN curl --silent --location https://rpm.nodesource.com/setup_12.x | bash - \
&& yum -y install nodejs \
&& curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo \
&& yum -y install yarn \
&& yarn config set registry https://registry.npm.taobao.org \
&& yum clean all \
&& rm -rf /var/lib/yum/yumdb
